package com.ice.work.moment.user.dao.resource;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ice.work.moment.facade.user.model.Resource;
import com.ice.work.moment.facade.user.request.PageResourceRequest;

import java.util.Collection;
import java.util.List;

/**
 * @Description resource dao
 * @Author DELL
 * @Create 2019-01-10
 * @Since 1.0.0
 */
@SuppressWarnings("all")
public interface IResourceRepository {



    /**
     * 通过签名查找资源
     * @param sign
     * @param dataStatus
     * @return
     */
    Resource findBySignAndDataStatus(String sign,Integer dataStatus);

    /**
     * 分页查询资源
     *
     * @param page
     * @param resourceRequest
     * @return
     */
    IPage<Resource> page(IPage<Resource> page, PageResourceRequest resourceRequest);

}
